package com.traffic.api.service.impl;

import com.traffic.api.dao.AlipayUserMapper;
import com.traffic.api.entity.AlipayUser;
import com.traffic.api.service.AlipayUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by churcy on 2017/3/2.
 */
@Service
public class AlipayUserServiceImpl extends BaseServiceImpl<AlipayUser, Integer> implements AlipayUserService {

    @Autowired
    private AlipayUserMapper alipayUserMapper;

    @Override
    public List<AlipayUser> findByConditions(Map<String, Object> conditions) {
        return alipayUserMapper.findByConditions(conditions);
    }

    @Override
    public Map<String, Object> getByUserId(String userId) {
        return alipayUserMapper.getByUserId(userId);
    }

    @Override
    public List<Map<String, Object>> getByCertNo(String certNo) {
        return alipayUserMapper.getByCertNo(certNo);
    }
}
